A simple overview because i keep fucking searching for this.
You must add a .desktop file in either of these places:
/usr/share/applications/ for desktop entries available to every user in the system~/.local/share/applications/ for desktop entries available to a single userThis is an example of a .desktop file:
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Application Name
Comment=Application description
Icon=/path/to/icon.xpm
Exec=/path/to/application/executable
Terminal=false
Categories=Tags;Describing;Application
Here is the one we made for Blender on Arch:
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Blender
Comment=Application description
Icon=/home/amber/Documents/blender-4.5.0-linux-x64/blender.svg
Exec=/home/amber/Documents/blender-4.5.0-linux-x64/blender
Terminal=false
Categories=Blender;Development;Art
by amber